package com.example.demo2.test.controller;

import com.example.demo2.test.service.OkService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author ChenXi
 * @Date 2023/03/27/15:35
 */

@RestController
@Slf4j
public class OkController {

    @Autowired
    private OkService okService;


    // 深度
    @RequestMapping("/ok")
    public String coinTest(){
        okService.okMarket();
        return "okService controller 申请链接了";
    }

    // 标记价格
    @RequestMapping("/ok/mark")
    public String markPrice(){
        okService.markPrice();
        return "okService markPrice 申请链接了";
    }



}
